package com.slipper.system.api.menu.bo;

import com.slipper.common.bo.CommonBO;

import java.util.Date;

public class MenuPrivilegeBO extends CommonBO implements Comparable<MenuPrivilegeBO> {
    private static final long serialVersionUID = 1L;

    /* 操作ID */
    private String id;
    /* 操作ID */
    private String[] ids;
    private String menuId;
    private String menuType;
    /* 类型：1、按钮 2、权限 */
    private String type;
    /* 按钮名称 */
    private String name;
    /* 按钮类型 */
    private String buttonType;
    /* 按钮样式 */
    private String buttonClass;
    /* 按钮图标 */
    private String buttonIcon;
    /*
     * 选择方式：1、不用选择 2、单选(必选) 3、多选(可选) 4、多选(必选)
     */
    private String selectedMode;
    /* 数据来源路径 */
    private String dataSourUrl;
    /* 数据目标路径 */
    private String dataDestUrl;
    /* 按钮级别 */
    private String buttonLevel;
    /* 点击提示 */
    private String clickTips;
    /* 排序 */
    private Integer ordinal;
    /* 创建时间 */
    private Date createTime;

    private String employeeId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String[] getIds() {
        return ids;
    }

    public void setIds(String[] ids) {
        this.ids = ids;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuType() {
        return menuType;
    }

    public void setMenuType(String menuType) {
        this.menuType = menuType;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getButtonType() {
        return buttonType;
    }

    public void setButtonType(String buttonType) {
        this.buttonType = buttonType;
    }

    public String getButtonClass() {
        return buttonClass;
    }

    public void setButtonClass(String buttonClass) {
        this.buttonClass = buttonClass;
    }

    public String getButtonIcon() {
        return buttonIcon;
    }

    public void setButtonIcon(String buttonIcon) {
        this.buttonIcon = buttonIcon;
    }

    public String getSelectedMode() {
        return selectedMode;
    }

    public void setSelectedMode(String selectedMode) {
        this.selectedMode = selectedMode;
    }

    public String getDataSourUrl() {
        return dataSourUrl;
    }

    public void setDataSourUrl(String dataSourUrl) {
        this.dataSourUrl = dataSourUrl;
    }

    public String getDataDestUrl() {
        return dataDestUrl;
    }

    public void setDataDestUrl(String dataDestUrl) {
        this.dataDestUrl = dataDestUrl;
    }

    public String getButtonLevel() {
        return buttonLevel;
    }

    public void setButtonLevel(String buttonLevel) {
        this.buttonLevel = buttonLevel;
    }

    public String getClickTips() {
        return clickTips;
    }

    public void setClickTips(String clickTips) {
        this.clickTips = clickTips;
    }

    public Integer getOrdinal() {
        return ordinal;
    }

    public void setOrdinal(Integer ordinal) {
        this.ordinal = ordinal;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public int compareTo(MenuPrivilegeBO operator) {
        if (this.ordinal != null && operator.getOrdinal() != null) {
            if (this.ordinal.intValue() == operator.getOrdinal()) {
                return 1;
            }
            return this.ordinal.compareTo(operator.getOrdinal());
        }
        return 1;
    }

}
